<?php
namespace Devcopilot\Models;

use Zyucv7\Core\ORM\Model;
use Zyucv7\Core\Database\Manager as DatabaseManager;

class BaseModel extends Model
{
    // 默认更新时间字段
    protected $createdAt = 'create_time';
    protected $updateAt = 'update_time';

    /**
     * 获取数据库连接（伪代码）
     * @return mixed
     */
    protected function getConnection()
    {
        // 伪代码：实际项目中这里应该返回数据库连接实例
        $config = v7_import(DC_PATH.'/config/db.php');
        $this->db = DatabaseManager::connect($config);
    }
}